import { _decorator, Component, director, Node } from 'cc';
import { eventManager } from './common/EventManager';
const { ccclass, property } = _decorator;

@ccclass('AwardController')
export class AwardController extends Component {

    @property({type: Node})
    private ad : Node = null;


    getAward(): void {
        console.log("领取奖励")
        this.node.active = false;
         // 先看广告
        this.ad.active = true;
    }
}

